From: Evan Welsh Date: Sat, 30 Oct 2021 22:22:25 +0000 (-0700) Subject: js: Remove dead code in loginDialog and workspacesView X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~536^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f04914ac15275149e04f9c1a4a3726aa2e4d35e4;p=gnome-shell.git js: Remove dead code in loginDialog and workspacesView - this._scrolling no longer exists - _getBannerAllocation takes a single argument Part-of: --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index d2a82b43d..760d7e9ef 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -602,7 +602,7 @@ var LoginDialog = GObject.registerClass({ let bannerAllocation = null; let bannerHeight = 0; if (this._bannerView.visible) { - bannerAllocation = this._getBannerAllocation(dialogBox, this._bannerView); + bannerAllocation = this._getBannerAllocation(dialogBox); bannerHeight = bannerAllocation.y2 - bannerAllocation.y1; } diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 3761881d0..6dad2df3f 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -484,9 +484,6 @@ class WorkspacesView extends WorkspacesViewBase { } _activeWorkspaceChanged(_wm, _from, _to, _direction) { - if (this._scrolling) - return; - this._scrollToActive(); }